package com.tllq.zhongkang.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

@Data
@TableName("gresa_coupon_manager")
public class CouponIn implements Serializable {
    private static final long serialVersionUID = -7219559686176183068L;
    //    代金券ID
    @TableId
    private Long couponmanagid;
    //    代金券应用策略ID
    private Integer apprangeid;
    //    代金券号
    private String couponnum;
    //    制单人id
    private Integer inputmanid;
    //    制单人部门id
    private Integer inputmandeptid;
    //    制单日期
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime credate;
    //    会员Id
    private Integer holdinsiderid;
    //    状态
    private Integer couponstatus;
    //    代金券验证码
    private String identificode;
    //    面值
    private Float facevalue;
    //    零售中心id
    private Integer retailcenterid;
    //  最小消费金额
    private Float leastvalue;
    //    生效日期
//    @DateTimeFormat(pattern = "yyyy-MM-dd HH24:mm:ss")
//    @JsonFormat(pattern = "yyyy-MM-dd HH24:mm:ss", timezone = "GMT+8")
//    private LocalDateTime availabledate;
    private Date availabledate;
    //    失效日期
//    @DateTimeFormat(pattern = "yyyy-MM-dd HH24:mm:ss")
//    @JsonFormat(pattern = "yyyy-MM-dd HH24:mm:ss", timezone = "GMT+8")
//    private LocalDateTime invaliddate;
    private Date invaliddate;
    //    发券日期
//    @DateTimeFormat(pattern = "yyyy-MM-dd HH24:mm:ss")
//    @JsonFormat(pattern = "yyyy-MM-dd HH24:mm:ss", timezone = "GMT+8")
//    private LocalDateTime distributedate;
    private Date distributedate;
    //    发放人id
    private Integer distributemanid;
    //    发放部门ID
    private Integer distrideptid;

}
